does remove duplicates keep the first instance